package org.smart.framework.bean;

import org.smart.framework.util.CastUtil;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 *
 * @Auther Uncle_Z
 * @date 2017/8/23 17:26
 * @Email:2545375@qq.com
 * @since 1.0
 * To change this template use File | Settings | File Templates.
 */

public class Param {

    private Map<String,Object> paramMap;

    public Param(Map<String, Object> paramMap) {
        this.paramMap=paramMap;
    }

    public long getLong(String name) {
        return CastUtil.castLong(paramMap.get(name));
    }

    public Map<String,Object> getParamMap(){
        return paramMap;
    }
}
